package com.lk.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import com.lk.service.UserService;

public class UserController {
	   @Resource  
	    private UserService userService;  
	      
	    @RequestMapping("/")    
	    public ModelAndView getIndex(){      
	        ModelAndView mav = new ModelAndView("index");   
	        com.lk.entity.User user = userService.selectUserById(1);  
	        mav.addObject("user", user);   
	        return mav;    
	    } 
}
